<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title><{$option}>Banner广告</title>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script language='javascript'>
function CheckSubmit()
{	
	var url = $.trim($('#url').val());
	var title = $.trim($('#title').val());
	var rank = parseInt($.trim($('#rank').val()));
	if(url=="http://"||url=="")
	{
   		url.focus();
   		alert("链接地址不能为空！");
   		return false;
	}
	if(title=="")
	{
   		title.focus();
   		alert("Banner标题不能为空！");
   		return false;
	}
	if(rank < 0)
	{
		rank.focus();
   		alert("排列位置不能小于0");
   		return false;
	}
	return true;
}
</script>
<link href='../img/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='../img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA">
  <tr>
    <td height="28" background="../img/tbg.gif"><b><a href="banner_list.php"><u>Banner广告管理</u></a></b>&gt;&gt;<{$option}>Banner</td>
</tr>
<tr>
    <td height="200" bgcolor="#FFFFFF" valign="top">
	<form action="banner_act.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();";>
	<input type="hidden" name="op" value="<{$op}>" />
	<input type="hidden" name="banner_id" value="<{$banner_info.banner_id}>" />
	<table width="80%"  border="0" cellspacing="1" cellpadding="3">
	  <tr>
        <td width="19%" height="25">链接：</td>
        <td width="81%">
        	<input name="url" type="text" id="url" value="<{$banner_info.url}>" size="30" class='pubinputs' />
			以http://开头
        </td>
      </tr>
      <tr>
        <td height="25">Banner标题：</td>
        <td>
        	<input name="title" type="text" id="title" size="30" class='pubinputs' value="<{$banner_info.title}>" />
			最大100个字符
        </td>
      </tr>
      <tr>
        <td width="19%" height="25">排列位置：</td>
        <td width="81%">
        <input name="rank" type="text" id="rank" value="<{ if $banner_info.rank != null}><{$banner_info.rank}><{else}>0<{/if}>" size="10" class='pubinputs' style='width:60px' />
        (由小到大排列，由0开始，默认为0排第一位)
        </td>
      </tr>

      <tr>
        <td height="25">网站Banner：</td>
        <td>
        	<input name="logo" type="text" id="logo" size="30" class='pubinputs' value="<{$banner_info.logo}>" />
          (gif或jpg或jpeg或png)
        </td>
      </tr>
      <tr>
        <td height="25">上传Banner：</td>
        <td>
        	<input name="logoimg" type="file" id="logoimg" size="30" class='pubinputs' />
        </td>
      </tr>
      <tr>
        <td height="25">描述：</td>
        <td><textarea name="msg" cols="50" rows="4" id="msg"><{$banner_info.msg}></textarea></td>
      </tr>     
      <tr>
        <td height="25">审核：</td>
        <td>
        <input type='radio' name='status' value="1" <{if $banner_info.status == 1}>checked='1'<{/if}> /> 开放浏览
        <input type='radio' name='status' value="0" <{if $banner_info.status == 0}>checked='1'<{/if}> /> 待审核
        </td>
      </tr>      
      <tr>
        <td height="51">&nbsp;</td>
        <td>
        	<input type="submit" name="Submit" value=" 提 交 " class="coolbg np" />
          <input type="reset" name="Submit" value=" 重 置 " class="coolbg np" />
         </td>
      </tr>
      
    </table>
	</form>
 </td>
</tr>
</table>
</body>
</html>